<?php
class Default_Bootstrap extends Zend_Application_Module_Bootstrap{
    
    protected function _initRouter(){
        
    	$config = new Zend_Config_Ini(CONFIG_PATH . '/routes.ini');
		$objRouter = new Zend_Controller_Router_Rewrite();
		$router = $objRouter->addConfig($config,'routes');
		
		$front = Zend_Controller_Front::getInstance();
		$front->setRouter($router);
        
        //$error = new Zend_Controller_Plugin_ErrorHandler(array('module' => 'default', 'controller' => 'error', 'action' => 'index'));
        $error = new Zend_Controller_Plugin_ErrorHandler(array('module' => 'error', 'controller' => 'error', 'action' => 'error'));
        
        $front->registerPlugin($error);
    }
    
    protected function _initSessionCart(){
    	$cart = new Zend_Session_Namespace('cart');
    }
}